package util;

import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;

public class Sessions {
	public static void set(String name , Object obj){
		HttpSession session=ServletActionContext.getRequest().getSession();
		session.setAttribute( name, obj);
	}
	
	public static Object get(String name){
		HttpSession session=ServletActionContext.getRequest().getSession();
		return session.getAttribute(name);
	}
}
